Loans API
Get loan Past Dues
Description: This endpoint is used to get the loan past due details based on loanId. The loanId being passed in path parameter.
Channel sends the request to mulesoft with the path parameter "id". Mulesoft will send the request to t24 and get back the result.
A response is sent back to the channel immediately. If transaction fails due to any reason, a proper error is sent back to the API consuming channel to both REST using the error codes defined.
Mulesoft Request:
Headers:
Mandatory Headers: x-channel-id,x-correlation-id, x-bank-id,client_id, Authorization
Optional Headers: x-sub-channel-id,x-user-id, client_secret,x-debug-flag,x-debug-flag, x-customer-id
Paramaters:
URI Params: /{id}/
Query Params: NA
Content-type: application/json
Mulesoft Response:
Success Response: (200)
{
"status": {
"success": "true",
"code": "200",
"arabicMessage": "تمت العملية بنجاØ",
"englishMessage": "The Operation has been Successfully Completed"
},
"response": {
"customer": {
"customerId": "1235446"
},
"pastDueLoan": [
{
"id": "AABILL2102609TRS",
"category": "20210126",
"noOfDaysDue": "7",
"displayPayDate": "100",
"totalAmount": "100",
"interest": "1",
"principalAmount": "500"
}
]
}
}
Sample Error Response:
400 :
{
"status":
{
"success": false,
"code": "400",
"reasonCode": "BadRequest",
"arabicMessage": "لم يتم العثور على سجلات تطابق Ù…Øددات البØØ«",
"englishMessage": "No records were found that matched the selection criteria",
"backendError": "No records were found that matched the selection criteria",
"backendCode": "T24003790"
}
}